//-----------------------------------------------------------------------
// <copyright file="a_CreditCardService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_CreditCardService
    {
        #region a_CreditCard

        public static void Createa_CreditCard(a_CreditCard a_CreditCard)
        {            
            try
            {
                a_CreditCardDAO a_CreditCardDAO = new a_CreditCardDAO();
                a_CreditCardDAO.Createa_CreditCard(a_CreditCard);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_CreditCard(a_CreditCard a_CreditCard)
        {            
            try
            {
                a_CreditCardDAO a_CreditCardDAO = new a_CreditCardDAO();
                a_CreditCardDAO.Updatea_CreditCard(a_CreditCard);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_CreditCard(int ccid)
        {            
            try
            {
                a_CreditCardDAO a_CreditCardDAO = new a_CreditCardDAO();
                a_CreditCardDAO.Deletea_CreditCard(ccid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_CreditCard Geta_CreditCard(int ccid)
        {            
            try
            {
                a_CreditCardDAO a_CreditCardDAO = new a_CreditCardDAO();
                return a_CreditCardDAO.Geta_CreditCard(ccid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_CreditCardCollection Geta_CreditCardList(a_CreditCardColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_CreditCardDAO a_CreditCardDAO = new a_CreditCardDAO();
                return a_CreditCardDAO.Geta_CreditCardList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_CreditCardCollection Geta_CreditCardList(a_CreditCardColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_CreditCardDAO a_CreditCardDAO = new a_CreditCardDAO();
                return a_CreditCardDAO.Geta_CreditCardList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}